package com.zkthink.ceres.order.dto;

import com.zkthink.ceres.promotion.dto.PromotionInfoDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/** 下单请求对象
 * @author JustArgo 2020/5/12 10:06
 * @return
 */
@Data
public class PlaceOrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Long mid;

    @ApiModelProperty("下单时的sku和购买数量列表")
    List<OrderSkuItemDTO> skuItemDTOList;

    @ApiModelProperty("备注")
    private String notes;

    @ApiModelProperty("收货地址id")
    private Long addressId;

    @ApiModelProperty(value = "客户端ip", hidden = true)
    private String ip;

    @ApiModelProperty("来源 1-购物车 2-立即购买")
    private Integer source;

    @ApiModelProperty("支付渠道 1-微信支付")
    private Integer payChannel;

    @ApiModelProperty("下单时使用的活动优惠信息")
    private PromotionInfoDTO promotionInfoDTO;

}
